<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

</head>

<body>
    <script>
        axios.get('http://192.168.4.18:3000/searc?keywords=你')
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                console.log(error);
            });

        上面的请求也可以这样做
        axios.get('http://192.168.4.18:3000/search', {
                params: {
                    keywords:"你"
                }
            })
            .then(function (response) {
                console.log(response);
            })
            // .catch(function (error) {
            //     console.log(error);
            // });
    </script>
</body>

</html>